package com.liangzai.代理模式;

import com.liangzai.代理模式.impl.OrderServiceImpl;
import com.liangzai.代理模式.proxy.OrderServiceProxy;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2021/10/21 19:20
 */
public class Client {
    public static void main(String[] args) {
       /* //构建代理类 来访问被代理对象
        OrderService orderService = new OrderServiceProxy(new OrderServiceImpl());
        orderService.order();*/

        OrderService orderService = new OrderServiceProxy();
        orderService.order();
    }
}
